<?php

class Main_page extends CI_Controller{
	
	function index(){
		
		if ($this->session->userdata ( 'logged_in' )) {
			$session_data = $this->session->userdata ( 'logged_in' );
			redirect ( 'Home', 'refresh' );
		
		} else {
		$data['baslik'] = "Anasayfa";
		$data['content'] ='site/content';
		$this->load->view('site/anasayfa',$data);
		
		}

		
	}
}

?>